package com.jk.vehicle.mini.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;

@ApiModel("创建人员和车辆关联参数（扫码之后）")
@Data
public class LinkUserAndBicycleDTO {
    @NotBlank(message = "车辆名称不能为空")
    @ApiModelProperty("车辆名称")
    private String bicycleName;

    @NotNull(message = "车辆购入时间不能为空")
    @ApiModelProperty("车辆购入时间")
    private Date buyDate;

    @NotNull(message = "车辆Id不能为空")
    @ApiModelProperty("车辆id")
    private Long bicycleId;

    @NotNull(message = "厂家ID不能为空")
    @ApiModelProperty("厂家id")
    private Long corpId;

    @NotNull(message = "商品ID不能为空")
    @ApiModelProperty("商品id")
    private Long prodId;

    @NotNull(message = "用户ID不能为空")
    @ApiModelProperty("用户ID")
    private Long userId;
}
